﻿namespace IP_Package.GUI
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// fraction form
    /// </summary>
    public partial class FractionForm : Form
    {
        /// <summary>
        /// fractor value
        /// </summary>
        private float fractorValue;

        /// <summary>
        /// Initializes a new instance of the <see cref="FractionForm"/> class.
        /// </summary>
        public FractionForm()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Gets or sets the fractor_value.
        /// </summary>
        /// <value>
        /// The fractor_value.
        /// </value>
        public float Fractor_value
        {
            get { return this.fractorValue; }
            set { this.fractorValue = value; }
        }

        /// <summary>
        /// Handles the Click event of the BtOk control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void BtOk_Click(object sender, EventArgs e)
        {
            this.fractorValue = float.Parse(this.txtFract.Text.ToString());
            this.Close();
        }
    }
}
